package com.itheima.health.service.impl;

import com.itheima.health.dao.OrderDao;
import com.itheima.health.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Slf4j
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;


    /**
     * 根据预约的id返回预约的信息
     * @param id 预约id
     * @return
     */
    @Override
    public Map findById(Integer id) {
        log.info("[查询的预约的id]:{}",id);
        Map map = orderDao.findById(id);
        return map;
    }
}
